package 编程;

public class Test {
    public static void main(String[] args) {
        String  s1="a"+"b";
        String s2 = new String(s1);
        System.out.println(s1.hashCode());
        System.out.println(s2.hashCode());
        System.out.println(s2);
        if (s1==s2){
            System.out.println("==  is   succ");
        }
        if (s1.equals(s2)){
            System.out.println("equals");
        }
    }
}
